import { LEVEL_MAP } from '@/assets/constant/view.constants';
import { ComponentWithComputed } from 'miniprogram-computed';

ComponentWithComputed({
  data: {
    /** 是否显示弹窗 */
    isShow: false,
  },
  methods: {
    /** 显示弹窗 */
    open() {
      this.setData({
        isShow: true,
      });
    },
    /** 关闭弹窗 */
    close() {
      this.setData({
        isShow: false,
      });
    },
    onClose() {
      this.setData({
        isShow: false,
      });
    },
  },
});
